<?php

App::uses('Slideshow', 'AppModel');

class Slideshow extends AppModel {
    
    public $useTable = 'slideshow';
    public $order    = 'position';
    
    public function get() {
        $slideshow = $this->find('all');
        if (! empty($slideshow)) {
            $slideshow = Set::extract('{n}.Slideshow', $slideshow);
        }
        
        return $slideshow;
    }
    
}